﻿namespace Tgather
{
    public class Alert
    {
        /// <summary>Info消息
        /// 
        /// </summary>
        /// <param name="frm">窗口</param>
        /// <param name="msg">消息内容</param>
        public static void Info(string msg)
        {
            MessageBox.Show(msg, "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }


        /// <summary>Warn消息
        /// 
        /// </summary>
        /// <param name="frm">窗口</param>
        /// <param name="msg">消息内容</param>
        public static void Warn(string msg)
        {
            MessageBox.Show(msg, "警告提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        /// <summary>error消息
        /// 
        /// </summary>
        /// <param name="frm">窗口</param>
        /// <param name="msg">消息内容</param>
        public static void Error(string msg)
        {
            MessageBox.Show(msg, "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

    }
}
